package designPatterns_demo.proxy_pattern.dynamic_proxy.demo1;

public class TestProxy {
	public static void main(String[] args) {
		ProxyHandler proxy = new ProxyHandler();
		// 绑定该类实现的所有接口
		Subject subject = (Subject) proxy.bind(new RealSubject());
		subject.doSomething();
	}
}
